package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.LawsRegulationsTypeAddDTO;
import org.jsola.hr.dto.LawsRegulationsTypeUpdateDTO;
import org.jsola.hr.query.LawsRegulationsTypeQuery;
import org.jsola.hr.vo.LawsRegulationsTypeListVO;
import org.jsola.hr.vo.LawsRegulationsTypeVO;

import java.util.List;

/**
 * 卫人云-政策法规分组
 *
 * @author zhr
 */
@Api(tags = "hr-卫人云-政策法规分组")
public interface ILawsRegulationsTypeControllerAPI {

    /**
     * 新增卫人云-政策法规分组
     * @param lawsRegulationsTypeAddDTO 卫人云-政策法规分组新增实体
     * @return 卫人云-政策法规分组展示对象
     */
    @ApiOperation(value = "新增卫人云-政策法规分组")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeAddDTO", dataType = "LawsRegulationsTypeAddDTO", value = "新增卫人云-政策法规分组", paramType = "body")
    })
    Result<LawsRegulationsTypeVO> save(LawsRegulationsTypeAddDTO lawsRegulationsTypeAddDTO);


    /**
     * 修改卫人云-政策法规分组
     * @param lawsRegulationsTypeUpdateDTO 卫人云-政策法规分组
     * @return 更新数量
     */
    @ApiOperation(value = "修改卫人云-政策法规分组")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeUpdateDTO", dataType = "LawsRegulationsTypeUpdateDTO", value = "修改卫人云-政策法规分组", paramType = "body")
    })
    Result<Integer> update(LawsRegulationsTypeUpdateDTO lawsRegulationsTypeUpdateDTO);




    /**
     * 删除单个卫人云-政策法规分组，彻底删除
     * @param lawsRegulationsTypeId 卫人云-政策法规分组id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个卫人云-政策法规分组，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeId", dataType = "String", value = "卫人云-政策法规分组id", paramType = "path")
    })
    Result<Integer> delete(String lawsRegulationsTypeId);


    /**
     * 批量删除卫人云-政策法规分组，彻底删除
     * @param lawsRegulationsTypeIds 卫人云-政策法规分组id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除卫人云-政策法规分组，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeIds", dataType = "String[]", value = "卫人云-政策法规分组id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] lawsRegulationsTypeIds);


    /**
     * 根据卫人云-政策法规分组id查询卫人云-政策法规分组详情
     * @param lawsRegulationsTypeId 卫人云-政策法规分组id
     * @return 卫人云-政策法规分组详情
     */
    @ApiOperation(value="根据卫人云-政策法规分组id查询卫人云-政策法规分组详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeId", dataType = "String", value = "卫人云-政策法规分组id", paramType = "path")
    })
    Result<LawsRegulationsTypeVO> findById(String lawsRegulationsTypeId);


    /**
     * 查询卫人云-政策法规分组
     * @param lawsRegulationsTypeQuery 卫人云-政策法规分组查询参数
     * @return page
     */
    @ApiOperation(value="查询卫人云-政策法规分组")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeQuery", dataType = "LawsRegulationsTypeQuery", value = "卫人云-政策法规分组查询参数", paramType = "query")
    })
    Result<List<LawsRegulationsTypeListVO>> listAll(LawsRegulationsTypeQuery lawsRegulationsTypeQuery);


     /**
     * 分页查询卫人云-政策法规分组
     * @param lawsRegulationsTypeQuery 卫人云-政策法规分组查询参数
     * @return page
     */
    @ApiOperation(value="分页查询卫人云-政策法规分组")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsTypeQuery", dataType = "LawsRegulationsTypeQuery", value = "卫人云-政策法规分组查询参数", paramType = "query")
    })
    Result<Page<LawsRegulationsTypeListVO>> page(LawsRegulationsTypeQuery lawsRegulationsTypeQuery);


}

